﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Styx;
using Styx.Combat.CombatRoutine;
using Styx.Helpers;
using Styx.Logic;
using Styx.Logic.Combat;
using Styx.Logic.Pathing;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;

namespace HBPVPDruid
{
    /// <summary>
    /// This Controls the healing and buffing
    /// </summary>
    public partial class PVPDruid
    {

        public override bool NeedRest
        {
            get
            {
                if (ObjectManager.Me.IsActuallyInCombat) return false;

                // Health Check
                if (Me.HasAura("Rejuvenation") && Me.HasAura("Lifebloom")) { if (Me.ActiveAuras["Lifebloom"].StackCount == 3) return false; }

                if (ObjectManager.Me.HealthPercent < 93) return true;

                // Buff Check
                if (!ObjectManager.Me.HasAura("Mark of the Wild")) return true;

                return false;
            }
        }


        public override void Rest()
        {
            if (Spells.Healing.MarkoftheWild.Pulse()) return;
            if (Spells.Healing.Rejuvenation.Pulse()) return;
            if (Spells.Healing.Lifebloom.Pulse()) return;
        }



    }
}
